<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <script>
    function Person(name){
      this.name = name
    }

    Person.prototype.sayHello = function(){
      console.log(`我的名字是${this.name}`)
    }

    console.log(new Person('张三'))
  </script>
</body>
</html>
